import { defineStore } from 'pinia';
import pinia from '..';

const useSettingStoreHook = defineStore('settingStore', {
    state: () => ({
        title: [] as string[]
    }),
    actions: {
        setTitle(title: string[]) {
            this.title = title;
        }
    }
});

export function useSettingStore() {
    return useSettingStoreHook(pinia);
}
